package com.example.project1.presenter.imple;

import java.util.List;

import com.example.project1.entity.WuLiao;
import com.example.project1.model.impl.WuLiaoDataModelImple;
import com.example.project1.presenter.WuliaoDataPresenter;
import com.example.project1.utils.WuLiao1DataCallback;
import com.example.project1.view.Iwuliao_View;

public class WuliaoDataPresenterImpl implements WuliaoDataPresenter{

	private WuLiaoDataModelImple model;
	private Iwuliao_View view;
	
	public WuliaoDataPresenterImpl(Iwuliao_View view){
		this.view=view;
		model=new WuLiaoDataModelImple();
	}
	
	@Override
	public void loadWuLiaoData() {
		model.getWuliaoModel(new WuLiao1DataCallback() {
			
			@Override
			public void getDataCallBack(List<WuLiao> wuliaos) {
				view.showWuliaoView(wuliaos);
			}
		});
	}
}
